package com.ekin.attendance.converter;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ekin.attendance.model.entity.Leave;
import com.ekin.attendance.model.form.LeaveForm;
import com.ekin.attendance.model.vo.LeavePageVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface LeaveConverter {
    Page<LeavePageVO> toPageVo(Page<Leave> page);

    LeaveForm toForm(Leave entity);

    Leave toEntity(LeaveForm entity);
}
